Data and Hardware

Logic Gates

Logic Gates

Computers use special switches called logic gates to process data. These gates can be grouped together to form logic circuits. There are three main logic gates: AND, OR and NOT.


AND Gate

The AND gate outputs 1 only if both inputs are 1. This is the symbol that is used to represent the AND gate:


OR Gate

The OR gate outputs 1 if one or both of the inputs are 1. This is the symbol that is used to represent the OR gate:


NOT Gate

The NOT gate reverses the input, so if 1 is inputted, 0 is outputted and vice versa. This is the symbol that is used to represent the NOT gate: